No part of this work may be reproduced or transmitted in any form or by any means, electronic or mechanical, including photocopying, recording, or by any information storage and retrieval system, without permission in writing from the publisher. However, you are permitted to make copies of this work, printed or otherwise, as long as said copies are for your personal use only.
Introduction
------------
If you are looking for small but useful script examples, you've come to the right place. This edition of Snippet Show introduces three new snippets, described in detail below. Feel free to use any of these snippets in your own creations, or modify them to suit your needs.
Snippets
--------
LogRoll - this snippet updates a log file whenever it is called. The current date and time and the contents of the variable "LogRoll" are added to the end of the log file.
FolderDelete - this snippet deletes the contents of a folder, and then the folder itself. Put the full path of the folder to be deleted in the variable "FolderDelete". The FolderDelete XCMD that ships with MicroPhone does not delete non-empty folders, so this is a good way to get rid of them.
SilentWait - this snippet will throw out characters from the serial port for the time specified in the "SilentWait" variable. Specify the time in seconds. As soon as the specified number of seconds have elapsed, all subsequent characters begin to appear in the terminal window.